package com.wanmei.service;

import com.wanmei.mapper.OrderProductMapper;
import com.wanmei.pojo.OrderProduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderService {
    @Autowired
    private OrderProductMapper orderProductMapper;

    public List<OrderProduct> selectByExample() {
        return orderProductMapper.selectByExample();
    }

    public OrderProduct selectByPrimaryKey(String oid) {
        return orderProductMapper.selectByPrimaryKey(oid);
    }

    public int updateByPrimaryKeySelective(OrderProduct orderProduct) {
        return orderProductMapper.updateByPrimaryKeySelective(orderProduct);
    }

    public int deleteByPrimaryKey(String oid) {
        return orderProductMapper.deleteByPrimaryKey(oid);
    }

    public List<OrderProduct> selectOrderAndAddress() {
        return orderProductMapper.selectOrderAndAddress();
    }

    public List<OrderProduct> selectOrderByName(String likevalue) {
        return orderProductMapper.selectOrderByName(likevalue);
    }
}
